﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="../../Content/themes/default/easyui.css" />
    <link rel="stylesheet" type="text/css" href="../../Content/themes/icon.css" />
    <link rel="stylesheet" type="text/css" href="../../Content/themes/default/form.css" />

    <script type="text/javascript" language="javascript" src=' <%=Url.Content("~/Scripts/jquery-1.4.4.min.js") %>'></script>
    <script type="text/javascript" language="javascript" src='<%=Url.Content("~/Scripts/jquery.easyui.min.js") %>'></script>
    <script type="text/javascript" language="javascript" src=' <%=Url.Content("~/Scripts/jquery.validate.js") %>'></script>
    <script type="text/javascript" language="javascript" src=' <%=Url.Content("~/Scripts/jquery.bgiframe.min.js") %>'></script>
    <script type="text/javascript" src='<%=Url.Content("~/Scripts/jquery.form.js") %>'></script>
    <script type="text/javascript" src='<%=Url.Content("~/Scripts/CatagoryMan.js") %>'></script>
   
</head>
<body>
    <div id="main_body">
        <form id="userForm" method="post" runat="server" action="AddCatagory" >
        <table class="formTable">
            <thead>
                <tr>
                    <td class="headlf">
                        类型管理
                    </td>
                    <td class="headrh">
                        <a class="ce" href="javascript:void(0)" onclick="mytoggle(this)">收起</a>
                    </td>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td colspan="2" class="label">
                        <div style="text-align: left; font-weight: bold; position:relative">添加分类                        
                        
                        <a href="javascript:void(0)" style="position:absolute; right:20px"  onclick="self.parent.addTab('类型信息','../Admin/AllCatagory','icon-add')">查看所有类型</a>

                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="label">
                        类型名称：
                    </td>
                    <td>
                        <input type="text" id="catagoryTxt" name="catagoryTxt"  /><%=ViewData["verify"].ToString()%>
                    </td>
                </tr>
                <tr>
                    <td class="label" style="text-align: left; padding-left: 250px;" colspan="2">
                        <input type="submit" id="addCatagory" value="添加"  />
                        
                    </td>
                </tr>
                <tr>
                    <td colspan="2" class="label" style="text-align: left; font-weight: bold">
                        添加项
                    </td>
                </tr>
                <tr>
                    <td class="label">
                        选择类型：
                    </td>
                    <td class="content">         
                        <%= Html.DropDownList("ddlCatagory")%>      
                    </td>
                </tr>
                <tr>
                    <td class="label">
                        项名称：
                    </td>
                    <td class="content">
                        <input id="itemName" name="itemName" type="text" />
                    </td>
                </tr>
                <tr>
                    <td class="label" style="text-align: left; padding-left: 250px" colspan="2">
                        <input type="button" value="提交" onclick="Insert(this)" />
                        <span style="padding-left: 30px ; color:Red"    ></span>
                    </td>
                </tr>
            </tbody>
        </table>
        </form>
        <div id="result">
            <table id="test" style="margin:0 auto">
            </table>
            <div id="w" class="easyui-window" title="" iconcls="icon-save" style="width:650px;height: 350px; padding: 3px; background: #fafafa;">
                <div id="tabWrap" class="easyui-layout" fit="true">
                    <div id="tabResult" region="center" border="false" style="padding: 10px; background: #fff;
                        border: 1px solid #ccc;">
                    </div>
                    <div region="south" border="false" style="text-align: right; height: 30px; line-height: 30px;">
                        <a class="easyui-linkbutton" iconcls="icon-ok" href="javascript:void(0)" onclick="EnsureUpdate()">
                            确认</a>
                    </div>
                </div>
            </div>
            <div style="clear:both"></div>
        </div>    
    </div>
   
</body>
</html>
